home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / msdos-programmer-faq / part1 < prev    next >
Encoding:
Text File  |  1993-06-26  |  10.3 KB  |  227 lines

  1. Newsgroups: comp.os.msdos.programmer,comp.answers,news.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!spool.mu.edu!darwin.sura.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ncoast!brown
  3. From: brown@NCoast.ORG (Stan Brown)
  4. Subject: comp.os.msdos.programmer FAQ part 1 of 4
  5. Expires: Fri, 23 Jul 1993 23:18:24 GMT
  6. Organization: Oak Road Systems, Cleveland Ohio USA
  7. Distribution: world
  8. Date: Sat, 26 Jun 1993 23:18:24 GMT
  9. Approved: news-answers-request@MIT.Edu
  10. Message-ID: <msdos-faq.9311.1@NCoast.ORG>
  11. Followup-To: comp.os.msdos.programmer
  12. Keywords: 
  13. References: none
  14. Supersedes: <msdos-faq.9310.1@NCoast.ORG>
  15. Lines: 209
  16. Xref: senator-bedfellow.mit.edu comp.os.msdos.programmer:24750 comp.answers:1132 news.answers:9756
  17.  
  18.  
  19. Archive-name: msdos-programmer-faq/part1
  20. Last modified: 26 June 1993
  21.  
  22.  
  23. This is the FAQ list (Frequently Asked Questions list) for the newsgroup
  24. comp.os.msdos.programmer.  Parts 2 through 4 of this article are posted
  25. as followups in the same thread.  Starting 2 Feb 1993, I mark new and
  26. revised answers with "new:" or "rev:" and the change date.
  27.  
  28. If the posting date shown above is more than four weeks in the past, see
  29. instructions in part 4 of this list for how to get an updated copy.  (A
  30. separate article, posted before this one, holds the changes from the
  31. previous edition.  Look for the subject line "comp.os.msdos.programmer
  32. FAQ diffs".)
  33.  
  34. FAQ lists are intended to reduce the noise level in their newsgroups
  35. that results from the repetition of the same questions, correct answers,
  36. wrong answers, corrections to the wrong answers, corrections to the
  37. corrections, debate, etc.
  38.  
  39. This list should serve as a repository of the canonical "best" answers
  40. to the questions in it.  The names of folks who have helped to improve
  41. this FAQ list follow the table of contents.  If you know a better answer
  42. or even a slight change that improves an answer, please tell me!  (Use
  43. email, please.  Traffic in this group is high, and I may miss a relevant
  44. posted article.)
  45.                       Stan Brown, Oak Road Systems, Cleveland, Ohio, USA
  46.                                                         brown@ncoast.org
  47.  
  48. Search tips
  49. ===========
  50.     To search for specific topics:  See the list of questions in the
  51. Contents section (immediately below) to find which article (part 2, 3,
  52. or 4) you need.  Then, in that part, search for that question number.
  53. For example, while you're reading part 2 of this list, the trn
  54. newsreader command "gQ203" goes to Q203.
  55.     To skip one topic and go to the next:  Search for "Q" starting in
  56. column 1.  In trn and similar newsreaders, the command "g^Q" does that.
  57.     If your newsreader doesn't support searches, you can extract these
  58. articles to a file and use your favorite editor's search commands.
  59.  
  60.  
  61. Contents--part 2 of 4
  62. =====================
  63. section 1. General questions
  64.     101. Why won't my code work?
  65.     102. What is this newsgroup about?
  66.     103. What's the difference from comp.sys.ibm.pc.programmer?
  67.     104. Is comp.os.msdos.programmer available as a mailing list?
  68.     105. What other newsgroups should I know about?
  69. section 2. Compile and link
  70.     201. What the heck is "DGROUP > 64K"?
  71.     202. How do I fix "automatic data segment exceeds 64K" or "stack
  72.          plus data exceed 64K"?
  73.     203. Will Borland C code and Microsoft C code link together?
  74.     204. Why did my program bomb at run time with "floating point
  75.          formats not linked"?
  76.     205. Why did my program bomb with "floating point not loaded"?
  77.     206. How can I change the stack size in Borland's C compilers?
  78.     207. What's the format of an .OBJ file?
  79.     208. What's the format of an .EXE header?
  80.     209. What's the difference between .COM and .EXE formats?
  81. section 3. Keyboard
  82.     301. How can I read a character without echoing it to the screen,
  83.          and without waiting for the user to press the Enter key?
  84.     302. How can I find out whether a character has been typed, without
  85.          waiting for one?
  86.     303. How can I disable Ctrl-C/Ctrl-Break and/or Ctrl-Alt-Del?
  87.     304. How can I disable the print screen function?
  88.     305. How can my program turn NumLock (CapsLock, ScrollLock) on/off?
  89.     306. How can I speed up the keyboard's auto-repeat?
  90.     307. What is the SysRq key for?
  91.     308. How can my program tell what kind of keyboard is on the system?
  92.     309. How can I tell if input, output, or stderr has been redirected?
  93.     310. How can I increase the size of the keyboard buffer?
  94.  
  95.  
  96. Contents--part 3 of 4
  97. =====================
  98. section 4. Disks and files
  99.     401. What drive was the PC booted from?
  100.     402. How can I boot from drive b:?
  101.     403. Which real and virtual disk drives are valid?
  102.     404. How can I make my single floppy drive both a: and b:?
  103.     405. Why won't my C program open a file with a path?
  104.     406. How can I redirect printer output to a file?
  105.     407. How can I redirect the output of a batch file?
  106.     408. How can my program open more files than DOS's limit of 20?
  107.     409. How can I read, create, change, or delete the volume label?
  108.     410. How can I get the disk serial number?
  109.     411. What's the format of .OBJ, .EXE., .COM files?
  110.     412. How can I flush the software disk cache?
  111. section 5. Serial ports (COM ports)
  112.     501. How do I set my machine up to use COM3 and COM4?
  113.     502. How do I find the I/O address of a COM port?
  114.     503. But aren't the COM ports always at I/O addresses 3F8, 2F8, 3E8,
  115.          and 2E8?
  116.     504. How do I configure a COM port and use it to transmit data?
  117. section 6. Other hardware questions and problems
  118.     601. Which 80x86 CPU is running my program?
  119.     602. How can a C program send control codes to my printer?
  120.     603. How can I redirect printer output to a file?
  121.     604. Which video adapter is installed?
  122.     605. How do I switch to 43- or 50-line mode?
  123.     606. How can I find the Microsoft mouse position and button status?
  124.     607. How can I access a specific address in the PC's memory?
  125.     608. How can I read or write my PC's CMOS memory?
  126.     609. How can I access memory beyond 640K?
  127.     610. Where can I find a list of 80x86 opcodes?
  128. section 7. Other software questions and problems
  129.     701. How can a program reboot my PC?
  130.     702. How can I time events with finer resolution than the system
  131.          clock's 55 ms (about 18 ticks a second)?
  132.     703. How can I find the error level of the previous program?
  133.     704. How can a program set DOS environment variables?
  134.     705. How can I change the switch character to - from /?
  135.     706. Why does my interrupt function behave strangely?
  136.     707. How can I write a TSR (terminate-stay-resident) utility?
  137.     708. How can I write a device driver?
  138.     709. What can I use to manage versions of software?
  139.     710. What's this "null pointer assignment" after my C program
  140.          executes?
  141.     711. How can my program tell if it's running under Windows?
  142.     712. How do I copyright software that I write?
  143.  
  144.  
  145. Contents--part 4 of 4
  146. =====================
  147. section A. Downloading
  148.     A01. What are Simtel, garbo, and wustl?
  149.     A02. I have no ftp access.  How can I get files from the archives?
  150.     A03. Can I get archives on CD-ROM?
  151.     A04. Where do I find program <mumble>?
  152.     A05. How can I check Simtel or garbo before I post a request for a
  153.          program?
  154.     A06. How do I download and decode a program I found?
  155.     A07. Where is UUDECODE?
  156.     A08. Why do I get errors when extracting from a ZIP file I
  157.          downloaded?
  158. section B. Vendors and products
  159.     B01. How can I contact Borland?
  160.     B02. How can I contact Microsoft?
  161.     B03. What's the current version of UNZIP?
  162.     B04. What's in Borland Pascal/Turbo Pascal 7.0?
  163.     B05. What's in Microsoft Visual C++?
  164.     B06. Where is Microsoft C 8.0?
  165. section C. More information
  166.     C01. Are there any good on-line references for PC hardware
  167.          components?
  168.     C02. Are there any good on-line references for PC interrupts?
  169.     C03. What and where is "Ralf Brown's interrupt list"?
  170.     C04. Where can I find lex, yacc, and language grammars?
  171.     C05. What's the best book to learn programming?
  172.     C06. Where are FAQ lists archived?
  173.     C07. Where can I get the latest copy of this FAQ list?
  174.     C08. How do I use ftp?
  175.  
  176.  
  177. Acknowledgements
  178. ================
  179. Many articles posted in comp.os.msdos.programmer sparked ideas or
  180. provided information for the first version of this list.  Though I am
  181. responsible for any errors, thanks are due to the following for posted
  182. articles or private email that I used in subsequent editions:  Jamshid
  183. Afshar, Mark Aitchison, Sanjay Aiyagari, George Almasi, Aaron Auseth,
  184. Preston Bannister, Denis Beauregard, Mike Black, Jon Brinkmann, Glynn
  185. Brooks, Paul Brooks, Ralf Brown, Shaun Burnett, Raymond Chen, Alan Drew,
  186. Paul Ducklin, Gary Dueck, Roland Eriksson, Markus Fischer, George
  187. Forsman, Vincent Giovannone, B.Haible, Janos Haide, Klaus Hartnegg, Kris
  188. Heidenstrom, Tom Haapanen, Joel Hoffman, Ari Hovila, Joe Huffman,
  189. Michael Holin, Mike Iarrobino, Byrial Jensen, Rune Jorgensen, Ajay
  190. Kamdar, Everett Kaser, Jeff Kellam, Jen Kilmer, Reinhard Kirchner, Dave
  191. Kirsch, Samuel Ko, Benjamin Lee, Sidney Markowitz, Jim Marks, Dimitri
  192. Matzarakis, Fred McCall, Ken McKee, Tom Milner, Bill Moore, Duncan
  193. Murdoch, Steve Murphy, Mert Nickerson, David Nugent, John Oldenburg,
  194. David Pape, Keith Petersen, Karl Riedling, Arthur Rubin, Gerald
  195. Ruderman, Timo Salmi, Tapio Sand, John Schmid, Russell Schulz, Ajay
  196. Shah, Steve Summit, Tom Swingle, Anders Thulin, Curt Tilmes, Rick
  197. Watkins, Ya-Gui Wei, Joe Wells, Gregory Youngblood, khill@vax1.umkc.edu
  198.  
  199. New contributors this issue: Ari Hovila
  200.  
  201.  
  202. Legalistic stuff
  203. ================
  204. This article is not in the public domain, but it may be redistributed so
  205. long as this notice, the acknowledgements, and the information on
  206. obtaining the latest copy of this list are retained and no fee is
  207. charged.  The code fragments may be used freely; credit would be polite.
  208.  
  209. Copyright (C) 1993  Stan Brown, Oak Road Systems.  All rights reserved.
  210.  
  211. THERE IS NO WARRANTY ON THE CODE.  I have tested all the code included
  212. below, but your machine may not work the same as mine, and my testing
  213. may not be perfect.  (Except where otherwise noted, I tested the code
  214. with both BC++ 2.0 and MSC 5.0.)
  215.  
  216. The mention of particular books or programs must not be construed to
  217. reflect unfavorably on any that are not mentioned.
  218.  
  219.  
  220. (continued in part 2)
  221.  
  222. -- 
  223. Stan Brown, Oak Road Systems                    brown@Ncoast.ORG
  224.  
  225. Can't find FAQ lists?  ftp to 'rtfm.mit.edu' and look in /pub/usenet
  226. (or email me >>> with valid reply-to address <<< for instructions).
  227.